<!--# layout("/common/layout.html",{"jsBase":"/js/admin/order/"}){ -->

<form class="layui-form layui-form-pane" id="updateForm">
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">商品名称</label>
				<div class="layui-input-inline">
					<input type="text" id="name" name="name"  value="${order.name}"   class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">商品价格</label>
				<div class="layui-input-inline">
					<input type="text" id="price" name="price"  value="${order.price}"   class="layui-input" >
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">商品折扣</label>
				<div class="layui-input-inline">
					<input type="text" id="discount" name="discount"  value="${order.discount}"   class="layui-input" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">是否打折</label>
				<div class="layui-input-inline">
					<input type="text" id="isDiscount" name="isDiscount"  value="${order.isDiscount}"   class="layui-input" >
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">创建日期</label>
				<div class="layui-input-inline">
					<input type="text" id="createdAt" name="createdAt"  value="${order.createdAt,"yyyy-MM-dd"}"   class="layui-input input-date" >
				</div>
            </div>
        </div>
    </div>
	<!-- 业务对象须有hidden字段，保存delFlag和version字段-->
    <input type="hidden" name="id" value=${order.id} />
    <layui:submitButtons id="updateButton" />
</form>
<!--#} -->
<script>
layui.use(['edit'], function(){
    var orderEdit = layui.edit
    orderEdit.init();
});
</script>
